// +----------------------------------------------------------------------
// | 品牌api请求
// +----------------------------------------------------------------------

import request from "@/utils/request.js";


/**
 * 车系
 */
export function newsGetList(data) {
	return request.get('news/carsVehicleSeriesList?users_id='+data.users_id+'&brand_id='+data.brand_id+'&search='+data.search);
}
/**
 * 车源车型
 */
export function carsVehicleModelsList(data) {
	return request.get('news/carsVehicleModelsList?series_two_id='+data.series_two_id + '&model_two_id='+data.model_two_id + '&appearance_name='+data.appearance_name + '&interior_name='+data.interior_name + '&city_id='+data.city_id + '&start_price='+data.start_price + '&end_price='+data.end_price + '&source_status='+data.source_status + '&identity='+data.identity + '&page_num='+data.page_num + '&page='+data.page + '&search='+data.search);
	
	
	// return request.get('news/carsVehicleModelsList?series_two_id='+data.series_two_id);
	
}

/**
 * 车型条件
 */
export function carsVehicleModelCondition(data) {
	return request.get('news/carsVehicleModelCondition?series_two_id='+data.series_two_id+'&search='+data.search);
}

/**
 * 车型外观/内饰
 */
export function carsVehicleModelColour(data) {
	return request.get('news/carsVehicleModelColour?series_two_id='+data.series_two_id+'&appearance_id='+data.appearance_id+'&interior_id='+data.interior_id+'&search='+data.search);
}


/**
 * 车型城市
 */
export function carsVehicleModelCity(data) {
	return request.get('news/carsVehicleModelCity?series_two_id='+data.series_two_id+'&search='+data.search);
}







/**
 * @param {Object} params
 */
export function getCardList(params) {
	return request.get(`news/energyVehicleSeries?series_two_id=${params.series_two_id}`);
}

/**车型条件
 * @param {Object} id
 */
export function getCardModel(id) {
	return request.get('news/energyVehicleCondition?series_two_id='+id);
}

